package aps.module_Core;

//Java
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;

import buildcraft.BuildCraftBuilders;

//Vanilla minecraft
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.World;
import net.minecraft.src.EntityPlayer;

//forge
import net.minecraft.src.ModLoader;

//APS
import aps.BuildcraftAPS;
import aps.module_Core.GuiIDs;


public class ItemAPSControlPanel extends Item
{
	protected GuiControlPanel.Mode lastPanelMode;
	
	protected ItemAPSControlPanel(int i) {
		super(i);

        setHasSubtypes(true);
        setMaxDamage(0);
	}

	@Override
	public int getIconFromDamage(int i)
	{
		return 9;
	}
	
	@Override
	public String getItemDisplayName(ItemStack itemstack)
	{
		return "Control Panel";
	}

	@Override
	public String getTextureFile()
	{
		return BuildcraftAPS.imageFilesRoot + "APSItemTexes.png";
	}
	
	
	@Override
	public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) 
    {
		//if (!world.isRemote)
			//entityplayer.openGui(BuildcraftAPS.instance, GuiIDs.FILLER, world, i, j, k);
			//ModLoader.openGUI(player, new GuiControlPanel(this));
		return stack;
    }
}